package com.octopus.kernal.util.xml;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlType(name="Action")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement
public class Action {
	
	@XmlAttribute
	private Boolean post = false;
	
	@XmlAttribute
	private Boolean customized = false;
	
	@XmlAttribute
	private Boolean confirm = false;
	
	@XmlAttribute
	private Boolean showButton = true;
	
	@XmlElement
	private String key;
	
	@XmlElement
	private String permission;
	
	@XmlElement
	private String rule;
	
	public Boolean getShowButton() {
		return showButton;
	}

	public void setShowButton(Boolean showButton) {
		this.showButton = showButton;
	}

	public Boolean getPost() {
		return post;
	}

	public void setPost(Boolean post) {
		this.post = post;
	}

	public Boolean getCustomized() {
		return customized;
	}

	public void setCustomized(Boolean customized) {
		this.customized = customized;
	}

	public Boolean getConfirm() {
		return confirm;
	}

	public void setConfirm(Boolean confirm) {
		this.confirm = confirm;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public String getRule() {
		return rule;
	}

	public void setRule(String rule) {
		this.rule = rule;
	}

}
